﻿#ifndef U_ConfigSystem_H
#define U_ConfigSystem_H

#include "Window/mydialog.h"

#include <QSerialPort>
#include <QSerialPortInfo>

class ConfigSystem : public MyDialog
{
    Q_OBJECT
public:
    explicit ConfigSystem(QWidget *parent = nullptr);

signals:

public slots:
    void OnResetClicked();
    void OnSaveClicked();

private:

    void InitWidget();
    void SetupConnections();
    void Initialize();
    QStringList GetSerials();   //串口设备

    QPushButton  *m_ResetBut;
    QPushButton  *m_SaveBut;

    QComboBox    *m_SerialBox;
    QComboBox    *m_BaudRateBox;
    QComboBox    *m_DataBitBox;
    QComboBox    *m_CheckoutBitBox;
    QComboBox    *m_StopBitBox;

};

#endif // U_ConfigSystem_H
